const {
  name
} = require('./package');

module.exports = {
  devServer: {
    port: 10000,
    headers: {
      'Access-Control-Allow-Origin': '*',
    },
    hot: true
  },
  configureWebpack: {
    output: {
      // 把子应用打包成 umd 库格式
      library: `${name}`,
      // filename: `${microName}-[name].js`,
      libraryTarget: 'umd',
      jsonpFunction: `webpackJsonp_${name}`,
      // globalObject: 'this',
    },
  },
  publicPath: '/'
}